package id.co.shuba.spamobile.list;

import java.util.ArrayList;
import java.util.List;

import id.co.shuba.spamobile.R;
import id.co.shuba.spamobile.task.BaseProgressTask;
import id.co.shuba.spamobile.task.MockProgressTask;
import id.co.shuba.spamobile.widget.ProgressAdapter;

import android.os.Bundle;
import android.support.v4.app.ListFragment;


public class ProgressListFragment extends ListFragment {			
			
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		ArrayList<BaseProgressTask> list = new ArrayList<BaseProgressTask>();
		BaseProgressTask task = new MockProgressTask("Standard");
		list.add(task);
		task = new MockProgressTask("Address");
		list.add(task);
		task = new MockProgressTask("Pipeline");
		list.add(task);
		task = new MockProgressTask("DSAR");
		list.add(task);		
		
		ProgressAdapter adapter = new ProgressAdapter(getActivity(), list, R.drawable.ic_download);
		setListAdapter(adapter);		
	}	
}
